package com.wzw.springboot.principle.spel;

import org.springframework.stereotype.Service;

/**
 * @author Wangzhiwen
 */
@Service
public class PermissionTestService {

    @Permission("#{@pm.check('admin')}")
    public void testSpel1(String params) {
        System.out.println(params);
    }

    @Permission("#{@pm.check('common')}")
    public void testSpel2(String params) {
        System.out.println(params);
    }

}
